package org.example.shop.dto;

import java.util.List;


public class OrderGroup {
    public OrderGroup(String key, List<OrderItem> value) {
        this.orderNo = key;
        this.items = value;
    }

    private Integer orderId;
    private String orderNo;
    private String addTime;
    private String status;
    private Double totalMoney;
    private List<OrderItem> items;//每个订单可能有多个购买的商品

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public List<OrderItem> getItems() {
        return items;
    }

    public void setItems(List<OrderItem> items) {
        this.items = items;
    }
}
